package com.oromwin.repos.socket.request;

import java.io.DataInputStream;
import java.io.DataOutputStream;

import org.apache.commons.logging.Log;

import com.oromwin.repos.common.Logger;
import com.oromwin.repos.common.ReposException;
import com.oromwin.repos.common.Common.ReposResult;
import com.oromwin.repos.server.LockObject;
import com.oromwin.repos.socket.request.file.CreateFileRequest;
import com.oromwin.repos.socket.response.CancelResponse;
import com.oromwin.repos.socket.response.Response;

public class CancelRequest extends AbstractRequest {
    @SuppressWarnings("unused")
    private transient Log log = Logger.getLog(CreateFileRequest.class);
    private static final long serialVersionUID = -6318348277097910988L;

    public CancelRequest() {
    }
    
    @Override
    public void send(DataOutputStream dos) throws ReposException {
        // TODO Auto-generated method stub
    }

    @Override
    public void receive(DataInputStream dis, LockObject lockObject) throws ReposException {
        // TODO Auto-generated method stub
        
    }

    @Override
    public Response run() {
        // TODO Auto-generated method stub
        Response res = new CancelResponse(ReposResult.Success, "OK");
        return res;
    }

}
